// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//  import store from './store/index'
//  import { sync } from 'vuex-router-sync'
import axios from 'axios'
import './utils/premission'
import {getToken} from './utils/token'
import VueAxios from 'vue-axios'
axios.defaults.timeout = 5000
axios.defaults.withCredentials = true
axios.defaults.headers.common['token'] = getToken()
Vue.use(VueAxios, axios)
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
 // sync(store, router)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
